(async function () {
  Promise.resolve();
})();

(async function () {
  declare const promiseIntersection: Promise<number> & number;
  promiseIntersection;
  promiseIntersection.then(() => {});
  promiseIntersection.catch();
  promiseIntersection.finally();
})();